package com.card.mysql;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MyEncoder
{
	public static void encode(HttpServletRequest request,HttpServletResponse response) throws UnsupportedEncodingException
	{
		if(request != null)
		request.setCharacterEncoding("UTF-8");
		if(response != null)
		response.setContentType("text/html;charset=utf-8");
	}
}
